package main4afsviewer
import (
    p401b1ee68 "gitee.com/bitwormhole/afsviewer/app/classes/fquery"
    pa5dfe5cc9 "gitee.com/bitwormhole/afsviewer/app/implements/ifquery"
    pdd5195161 "gitee.com/bitwormhole/afsviewer/app/web/controllers/apiv1"
    p0d2a11d16 "github.com/starter-go/afs"
    pd1a916a20 "github.com/starter-go/libgin"
    p85a4d026d "github.com/starter-go/mimetypes"
     "github.com/starter-go/application"
)

// type pa5dfe5cc9.FQueryService in package:gitee.com/bitwormhole/afsviewer/app/implements/ifquery
//
// id:com-a5dfe5cc9f7ae039-ifquery-FQueryService
// class:
// alias:alias-401b1ee68af1bf5a7018db6025ec3fd3-Service
// scope:singleton
//
type pa5dfe5cc9f_ifquery_FQueryService struct {
}

func (inst* pa5dfe5cc9f_ifquery_FQueryService) register(cr application.ComponentRegistry) error {
	r := cr.NewRegistration()
	r.ID = "com-a5dfe5cc9f7ae039-ifquery-FQueryService"
	r.Classes = ""
	r.Aliases = "alias-401b1ee68af1bf5a7018db6025ec3fd3-Service"
	r.Scope = "singleton"
	r.NewFunc = inst.new
	r.InjectFunc = inst.inject
	return r.Commit()
}

func (inst* pa5dfe5cc9f_ifquery_FQueryService) new() any {
    return &pa5dfe5cc9.FQueryService{}
}

func (inst* pa5dfe5cc9f_ifquery_FQueryService) inject(injext application.InjectionExt, instance any) error {
	ie := injext
	com := instance.(*pa5dfe5cc9.FQueryService)
	nop(ie, com)

	
    com.AFSService = inst.getAFSService(ie)
    com.TypeManager = inst.getTypeManager(ie)


    return nil
}


func (inst*pa5dfe5cc9f_ifquery_FQueryService) getAFSService(ie application.InjectionExt)p0d2a11d16.Service{
    return ie.GetComponent("#alias-0d2a11d163e349503a64168a1cdf48a2-Service").(p0d2a11d16.Service)
}


func (inst*pa5dfe5cc9f_ifquery_FQueryService) getTypeManager(ie application.InjectionExt)p85a4d026d.Manager{
    return ie.GetComponent("#alias-85a4d026daf77828ef49edb2adfd695e-Manager").(p85a4d026d.Manager)
}



// type pdd5195161.ExampleController in package:gitee.com/bitwormhole/afsviewer/app/web/controllers/apiv1
//
// id:com-dd5195161556c0f5-apiv1-ExampleController
// class:class-d1a916a203352fd5d33eabc36896b42e-Controller
// alias:
// scope:singleton
//
type pdd51951615_apiv1_ExampleController struct {
}

func (inst* pdd51951615_apiv1_ExampleController) register(cr application.ComponentRegistry) error {
	r := cr.NewRegistration()
	r.ID = "com-dd5195161556c0f5-apiv1-ExampleController"
	r.Classes = "class-d1a916a203352fd5d33eabc36896b42e-Controller"
	r.Aliases = ""
	r.Scope = "singleton"
	r.NewFunc = inst.new
	r.InjectFunc = inst.inject
	return r.Commit()
}

func (inst* pdd51951615_apiv1_ExampleController) new() any {
    return &pdd5195161.ExampleController{}
}

func (inst* pdd51951615_apiv1_ExampleController) inject(injext application.InjectionExt, instance any) error {
	ie := injext
	com := instance.(*pdd5195161.ExampleController)
	nop(ie, com)

	
    com.Sender = inst.getSender(ie)
    com.Service = inst.getService(ie)


    return nil
}


func (inst*pdd51951615_apiv1_ExampleController) getSender(ie application.InjectionExt)pd1a916a20.Responder{
    return ie.GetComponent("#alias-d1a916a203352fd5d33eabc36896b42e-Responder").(pd1a916a20.Responder)
}


func (inst*pdd51951615_apiv1_ExampleController) getService(ie application.InjectionExt)p401b1ee68.Service{
    return ie.GetComponent("#alias-401b1ee68af1bf5a7018db6025ec3fd3-Service").(p401b1ee68.Service)
}



// type pdd5195161.FqueryController in package:gitee.com/bitwormhole/afsviewer/app/web/controllers/apiv1
//
// id:com-dd5195161556c0f5-apiv1-FqueryController
// class:class-d1a916a203352fd5d33eabc36896b42e-Controller
// alias:
// scope:singleton
//
type pdd51951615_apiv1_FqueryController struct {
}

func (inst* pdd51951615_apiv1_FqueryController) register(cr application.ComponentRegistry) error {
	r := cr.NewRegistration()
	r.ID = "com-dd5195161556c0f5-apiv1-FqueryController"
	r.Classes = "class-d1a916a203352fd5d33eabc36896b42e-Controller"
	r.Aliases = ""
	r.Scope = "singleton"
	r.NewFunc = inst.new
	r.InjectFunc = inst.inject
	return r.Commit()
}

func (inst* pdd51951615_apiv1_FqueryController) new() any {
    return &pdd5195161.FqueryController{}
}

func (inst* pdd51951615_apiv1_FqueryController) inject(injext application.InjectionExt, instance any) error {
	ie := injext
	com := instance.(*pdd5195161.FqueryController)
	nop(ie, com)

	
    com.Sender = inst.getSender(ie)
    com.Service = inst.getService(ie)


    return nil
}


func (inst*pdd51951615_apiv1_FqueryController) getSender(ie application.InjectionExt)pd1a916a20.Responder{
    return ie.GetComponent("#alias-d1a916a203352fd5d33eabc36896b42e-Responder").(pd1a916a20.Responder)
}


func (inst*pdd51951615_apiv1_FqueryController) getService(ie application.InjectionExt)p401b1ee68.Service{
    return ie.GetComponent("#alias-401b1ee68af1bf5a7018db6025ec3fd3-Service").(p401b1ee68.Service)
}


